package com.qidian.tcba.dao;


import com.qidian.tcba.admin.model.entity.Announcement;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface AnnouncementMapper {
    int deleteByPrimaryKey(int id);

    int insert(Announcement record);

    Announcement selectByPrimaryKey(int id);

    List<Announcement> selectAll();

    int updateByPrimaryKey(Announcement record);

    List<Announcement> getAnnouncements(int receiveId,int page,int size);
}